$(function (){
    $("#user-id").html(getCookie("login-user-name"));
})

function quitLogin() {
    layer.confirm('确认退出系统吗？', {btn: ['确定','取消']}, function(){
        document.cookie = "token=null";
        document.cookie = "current-flink-name=null";
        window.location.href = "/";
    }, function(){
    });
}

function flinkOpen() {
    window.location.href = "/flink-console.html";
}

function refresh() {
    window.location.href = '/'
}